package ua.kharkov.khpi.tarasenko.bach.dao.core.order;

import java.io.Serializable;

/**
 * Represents order-item's instance.
 * 
 * @author oleksandr
 *
 */
public class OrderItemDTO implements Serializable{
	private static final long serialVersionUID = -1902270269256542744L;
	
	private int orderId;
	private int itemId;
	private int itemQuantity;

	public int getItemQuantity() {
		return itemQuantity;
	}

	public void setItemQuantity(int orderQuantity) {
		this.itemQuantity = orderQuantity;
	}

	public int getItemId() {
		return itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Order id=");
		builder.append(orderId);
		builder.append("\n");
		builder.append("Item id=");
		builder.append(itemId);
		builder.append("\n");
		builder.append("Item quantity=");
		builder.append(itemQuantity);
		builder.append("\n");
		return builder.toString();
	}
}
